//
//  Ext+UIImageView.swift
//  JJSina
//
//  Created by mac on 2017/12/5.
//  Copyright © 2017年 xinyuan. All rights reserved.
//

import UIKit
import SDWebImage

extension UIImageView {
    convenience init(imageName: String) {
        self.init(image: UIImage(named: imageName))
    }
    
    func jj_setImage(urlString: String?) {
        self.sd_setImage(with: URL(string: urlString ?? ""), placeholderImage: self.image)
    }
    
}


